<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/admin/inc/tag.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>打印预览</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {font-size: 12px}
.STYLE3 {font-size: 12px; font-weight: bold; }
.STYLE4 {
	color: #03515d;
	font-size: 12px;
}
@media print{
	.no_print {display:none;}
}
-->
</style>

<script>
</script>
</head>

<body>
<admin:scheme name="scheme" schemeId="${param.id}"/>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>
			<table width="100%" border="1" cellpadding="0" cellspacing="0">
				<tr>
					<td width="20%" height="30"><div align="right" style="padding-right:5px;">编号</div></td>
					<td height="20"><div align="left" style="padding-left:5px;">${scheme.scheme_no}</div></td>
				</tr>
				<tr>
					<td width="20%" height="30"><div align="right" style="padding-right:5px;">名称</div></td>
					<td height="20"><div align="left" style="padding-left:5px;">${scheme.scheme_name}</div></td>
				</tr>
				<tr>
					<td width="20%" height="30"><div align="right" style="padding-right:5px;">是否推荐</div></td>
					<td height="20"><div align="left" style="padding-left:5px;">
						<c:choose>
							<c:when test="${scheme.scheme_is_recommend != null && scheme.scheme_is_recommend == '0'}">否</c:when>
							<c:otherwise>是</c:otherwise>
						</c:choose>
					</div></td>
				</tr>
				<tr>
					<td width="20%" height="30"><div align="right" style="padding-right:5px;">是否购买</div></td>
					<td height="20"><div align="left" style="padding-left:5px;">
						<c:choose>
							<c:when test="${scheme.scheme_is_buy != null && scheme.scheme_is_buy == '0'}">否</c:when>
							<c:otherwise>是</c:otherwise>
						</c:choose>
					</div></td>
				</tr>
				<tr>
					<td width="20%" height="30"><div align="right" style="padding-right:5px;">顾客信息</div></td>
					<td height="20"><div align="left" style="padding-left:5px;">
						姓名：${scheme.scheme_customer_name}<br/>
						手机：${scheme.scheme_customer_mobile}<br/>
						QQ：${scheme.scheme_customer_qq}
					</div></td>
				</tr>
				<tr>
					<td width="20%" height="30"><div align="right" style="padding-right:5px;">方案产品</div></td>
					<admin:schemeDetailList name="schemeDetails" schemeId="${scheme.scheme_id}"/>
					<td height="20" class="STYLE1"><div align="left" style="padding-left:5px;">
						<c:forEach items="${schemeDetails}" var="schemeDetail">
							<c:if test="${schemeDetail.scheme_detail_is_other == '1'}">其它-</c:if>${schemeDetail.config_name}：${schemeDetail.product_name}，
							数量：${schemeDetail.scheme_detail_product_num}<br/>
						</c:forEach>
					</div></td>
				</tr>
				<tr>
					<td width="20%" height="30"><div align="right" style="padding-right:5px;">方案评价</div></td>
					<td height="20" class="STYLE1"><div align="left" style="padding-left:5px;">${scheme.scheme_note}</div></td>
				</tr>
				<tr>
					<td width="20%" height="30"><div align="right" style="padding-right:5px;">是否有效</div></td>
					<td height="20"><div align="left" style="padding-left:5px;">
						<c:choose>
							<c:when test="${scheme.scheme_status != null && scheme.scheme_status == '0'}">否</c:when>
							<c:otherwise>是</c:otherwise>
						</c:choose>
					</div></td>
				</tr>
			</table>
        </td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="35"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="no_print">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
			<td class="STYLE4" align="center">
				<input type="button" value="打印" onclick="window.print();"/>
			</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
